package rssgate;

import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;

public class ConstUtils {
	private static String[] feeds=new String[]{"http://xkcd.com/rss.xml",
		//"http://pipes.yahoo.com/pipes/pipe.run?_id=1H0Vyl1U3hGcOwtk0z6skA&_render=rss&num_pages=1&topic_ids=358"};
//"http://pipes.yahoo.com/pipes/pipe.run?_id=1H0Vyl1U3hGcOwtk0z6skA&_render=rss&num_pages=2&topic_ids=358%2C518%2C126%2C157%2C469%2C168",
"http://pipes.yahoo.com/pipes/pipe.run?_id=1H0Vyl1U3hGcOwtk0z6skA&_render=rss&num_pages=4&topic_ids=358",
"http://pipes.yahoo.com/pipes/pipe.run?_id=1H0Vyl1U3hGcOwtk0z6skA&_render=rss&num_pages=4&topic_ids=518",
"http://pipes.yahoo.com/pipes/pipe.run?_id=1H0Vyl1U3hGcOwtk0z6skA&_render=rss&num_pages=4&topic_ids=126",
"http://pipes.yahoo.com/pipes/pipe.run?_id=1H0Vyl1U3hGcOwtk0z6skA&_render=rss&num_pages=4&topic_ids=157",
"http://pipes.yahoo.com/pipes/pipe.run?_id=1H0Vyl1U3hGcOwtk0z6skA&_render=rss&num_pages=4&topic_ids=469",
"http://pipes.yahoo.com/pipes/pipe.run?_id=1H0Vyl1U3hGcOwtk0z6skA&_render=rss&num_pages=4&topic_ids=168"};
	private static int timeRoll = -15;
	private static int timeRoll2Delete = -1;	
	
	public static List<String> getFeedUrls()
	{
		final List<String> asList = Arrays.asList(feeds);
		return asList;
	}
	
	public static Date getLast2Past()
	{
		GregorianCalendar c =new GregorianCalendar();
		c.roll(Calendar.MINUTE, timeRoll);
		return c.getTime();
	}
	
	public static Date getLast2Remove()
	{
		GregorianCalendar c = new GregorianCalendar();
		c.roll(Calendar.MONTH, timeRoll2Delete);
		return c.getTime();
	}


}
